package m3d29;
//线程安全
public class lTicket {
    public static void main(String[] args) {
        kRunnable r = new kRunnable();

        Thread one = new Thread(r);
        Thread two = new Thread(r);
        Thread three = new Thread(r);

        one.start();
        two.start();
        three.start();
        //出现重复的和不存在的票
    }
}
